package 死锁;


public class ThreadB extends Thread{
    @Override
    public void run() {
        synchronized (Lock.LOCK_B){
            System.out.println("B线程拿到了B锁");
            synchronized (Lock.LOCK_A){
                System.out.println("B线程拿到了A锁");
            }
        }
    }
}
